package com.admin.mapper;

import java.io.Serializable;
import java.util.List;
import java.util.Map;

/**
 * 
 * @author Administrator
 *
 * @param <T>
 */
public interface BaseMapper<T> {

    T selectByPrimaryKey(Serializable s);

    Integer insert(T t);

    Integer insertSelective(T t);

    Integer deleteByPrimaryKey(Serializable s);

    Integer updateByPrimaryKeySelective(T t);

    Integer updateByPrimaryKey(T t);

    List<T> selectByMap(Map<String, Object> params);

    Integer countByMap(Map<String, Object> params);
}
